$OpenBSD: patch-libzeitgeist_where-clause_vala,v 1.1 2014/04/06 12:09:14 ajacoutot Exp $

From 201bd67de450320520a12e2b0c465c8eb6818bd2 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Mon, 17 Mar 2014 19:57:49 +0000
Subject: WhereClause: Fix array-length to work with string.joinv of vala-0.24

--- libzeitgeist/where-clause.vala.orig	Mon Jun 17 08:40:08 2013
+++ libzeitgeist/where-clause.vala	Sun Apr  6 13:35:53 2014
@@ -211,7 +211,11 @@ namespace Zeitgeist
          */
         private T[] generic_array_to_unowned_array<T> (GenericArray<T> gptrarr)
         {
+#if VALA_0_24
+            long[] pointers = new long[gptrarr.length];
+#else
             long[] pointers = new long[gptrarr.length + 1];
+#endif
             Memory.copy(pointers, ((PtrArray *) gptrarr)->pdata,
                 (gptrarr.length) * sizeof (void *));
             return (T[]) pointers;
